weed out

verbs

remove unwanted elements
"The company weeded out the incompetent people"; "The new law weeds out the old inequities"